<?php

namespace App\Model;

use Illuminate\Database\Eloquent\Model;

class Book extends Model
{
    protected $guarded = ['id'];

    public function students(){
        return $this->belongsToMany('App\Model\Student')->withPivot('return_date');
    }
}
